//现有一4位寄存器（SEG），每一位分别控制一个LED灯，0为灭，1为亮。（SEG |= 0x01）
//1.现要求LED灯 按顺序依次点亮
//2.随后LED灯 按照点亮的顺序依次熄灭
//3.二进制显示展示:
//4.要求显示为 十六进制

#include <stdio.h>
int main(){
	unsigned char SEG = 0;
	printf("%#hhx\n",SEG |= 0x01 << 0);
	printf("%#hhx\n",SEG |= 0x01 << 1);
	printf("%#hhx\n",SEG |= 0x01 << 2);
	printf("%#hhx\n",SEG |= 0x01 << 3);
	printf("%#hhx\n",SEG <<= 1);
	printf("%#hhx\n",SEG <<= 1);
	printf("%#hhx\n",SEG <<= 1);
	printf("%#hhx\n",SEG <<= 1);

	return 0;
}
